package top.yuyufeng.mbuy.entity;

import lombok.Data;

import java.util.Date;
import javax.persistence.*;

/**
 * @author yuyufeng7
 */
@Data
@Table(name = "mb_cart")
public class Cart {
    @Id
    private Integer id;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "product_id")
    private Integer productId;

    private Integer quantity;

    /**
     * 是否选择 1-已选择，0-未选择
     */
    private Integer checked;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;


}